/**
 * 
 */
package com.gmg.tools;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;

/**
 * @author Julien
 *
 */
public class ErrorMessage {

	public static void show(Activity activity, String msg) {
		AlertDialog.Builder builder = new AlertDialog.Builder(activity);
		builder.setMessage(msg)
		       .setNeutralButton("OK", new DialogInterface.OnClickListener() {
		           public void onClick(DialogInterface dialog, int id) {
		        	   dialog.dismiss();
		           }
		       });
		AlertDialog alert = builder.create();
		alert.show();
	}

	
}
